
<%@ page import="utils.Config" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>上机考试系统</title>
    <style>
        .vertical-text {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            position: fixed;
            top: 50%;
            left: 50px;
            transform: translateY(-50%);
            font-family: 'STXingkai', 'KaiTi', '楷体', cursive;
            font-size: 35px;
            color: #333;
            z-index: 1000;
        }
    </style>

</head>
<body>
<jsp:include page="admin_head.jsp"></jsp:include>
<%
    ServletContext servletContext = request.getServletContext();
    Config config1 = (Config)servletContext.getAttribute("config");
    request.setAttribute("interval",config1.getInterval());
    request.setAttribute("pagesize",config1.getPagesize());
    request.setAttribute("timegap",config1.getTimegap());
    request.setAttribute("minfilesize",config1.getMinfilesize());
    request.setAttribute("maxfilesize",config1.getMaxfilesize());
    boolean candelete = config1.isCandelete();
%>
<div class="container">
    <br/>
    <div class="row">
        <div class="col-md-offset-1 col-md-10">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <span class="glyphicon glyphicon-th-list"></span>&nbsp; 修改系统配置
                    </h3>
                </div>
                <div class="panel-body">
                    <form action="../EditSystemConfig">
                        <table>
                            <tr>
                                <td align="right"><b>后台任务时间间隔</b></td>
                                <td style="padding-left: 20px"><input name="interval" type="text" value=${interval}
                                        class="form-control"></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td style="padding-left: 20px">制定扫描考试信息的间隔时间，单位：分钟</td>
                            </tr>

                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right"><b>分页查询记录条数</b></td>
                                <td style="padding-left: 20px"><input name="pagesize" type="text" value=${pagesize}
                                        class="form-control"></td>
                            </tr>

                            <tr>
                                <td></td>
                                <td style="padding-left: 20px">指定分页查询时每页显示记录数的默认值</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right"><b>手动开启考试时间阈值</b></td>
                                <td style="padding-left: 20px"><input name="timegap" type="text" value=${timegap}
                                        class="form-control"></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td style="padding-left: 20px">手动开启考试最大允许提前时间，单位：分钟</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right"><b>上传文件字节数下限</b></td>
                                <td style="padding-left: 20px"><input name="minfilesize" type="text"
                                                                      value=${minfilesize} class="form-control"></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td style="padding-left: 20px">上传文件大小下限（B）</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right"><b>上传文件字节数上限</b></td>
                                <td style="padding-left: 20px"><input name="maxfilesize" type="text"
                                                                      value=${maxfilesize} class="form-control"></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td style="padding-left: 20px">上传文件大小上限（B）</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right"><b>允许教师清理和删除考试</b></td>
                                <td style="padding-left: 20px"><input
                                        name="candelete" type="checkbox"
                                    <%if (candelete)
				out.print("checked='checked'");%>>
                                    允许</td>
                            </tr>

                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td></td>
                                <td style="padding-left: 20px"><button type="submit"
                                                                       class="btn btn-info">修改</button></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
<div class="vertical-text">明德新民，止于至善</div>

</body>
</html>